//
//  UILabel+GXAddition.m
//  

#import "UILabel+GXAddition.h"

@implementation UILabel (GXAddition)

+ (instancetype)gx_labelWithText:(NSString *)text fontSize:(CGFloat)fontSize color:(UIColor *)color {
    //
    UILabel * label = [[self alloc] init];
    
    label.text = text;
    label.font = [UIFont systemFontOfSize:fontSize];
    label.numberOfLines = 0;
    
    color = !color ? [UIColor blackColor] : color;
    label.textColor = color;
    
    [label sizeToFit];
    
    return label;
}

@end
